from django.db import models

# Create your models here.

class Note(models.Model):
    title = models.CharField('标题' , max_length=100)
    content = models.TextField('内容')
    create_time = models.DateTimeField('创建时间' , auto_now_add=True)
    updated_time = models.DateTimeField('更新时间' , auto_now_add=True)

    def __str__(self):
        return f"{self.title} , {self.content}"
